package cn.thoughtworks.school.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;


@FeignClient(name = "${feign.organizationCenter.name}",
  url = "${feign.organizationCenter.url}")
@Service
public interface OrganizationCenterFeign {

  @PostMapping("api/userOrganizations")
  void addUsersToOrganization(@RequestBody Map userOrganization);

}
